body {
    background-color: #191919;
    color: white;
    font-size: 20px;
}

form {
    margin-bottom: 0px;
}

img {
    image-rendering: pixelated;
}

input[type=text], input[type=number], select {
    border: 0px;
    border-radius: 10px;
    width: 100%;
}

input, select {
    color: white;
    background-color: #262626;
    margin-top: 4px;
    margin-bottom: 16px;
    padding: 4px 4px;
    font-size: 16px;
}

button {
    color: white;
    background-color: #3D3D3D;
    border: 0px;
    border-radius: 10px;
}

button:active {
    background-color: #333333;
}

a:link, a:visited {
    color: white;
}

.centered-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.centered-container div:first-child {
    max-width: 532px;
    margin: auto;
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px 10px;
}

.grid-container input,
.grid-container button {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 16px;
    padding: 4px 4px;
    font-size: 16px;
    color: white;
}

.dreamer-summary {
    /* Idk why it's like this but yeah nonsense like this is why I hate CSS */
    width: calc(100% + 4px);
    margin-top: 3px;
    margin-left: -2px;
    margin-bottom: 20px;
    table-layout: fixed;
}

.dreamer-summary th {
    text-align: left;
    padding-left: 10px;
}

.dreamer-summary td {
    background-color: #262626;
    border-radius: 10px;
    padding-left: 5px;
}

.header-text {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    margin-top: 0px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
}

.content {
    position: relative;
    background-color: #191919;
    width: 500px;
    padding: 20px 20px 0px 20px;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #3D3D3D;
}

.encounter-image-table {
    width: calc(100% + 16px);
    border-spacing: 8px;
    margin-left: -8px;
    margin-top: -4px;
    margin-bottom: 14px;
}

.encounter-image-table td {
    background-color: #262626;
    border-radius: 10px;
    width: 96px;
    height: 96px;
    text-align: center;
    cursor: pointer;
}

.item-table {
    width: calc(100% + 16px);
    border-spacing: 8px;
    margin-left: -8px;
    margin-top: -4px;
    margin-bottom: 14px;
}

.item-table td {
    background-color: #262626;
    border-radius: 10px;
    width: 48px;
    height: 48px;
    text-align: center;
    cursor: pointer;
}

.item-table td a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.visitor-table {
    width: calc(100% + 16px);
    border-spacing: 8px;
    margin-left: -8px;
    margin-top: -4px;
    margin-bottom: 14px;
}

.visitor-table td {
    background-color: #262626;
    border-radius: 10px;
    width: 80px;
    height: 80px;
    text-align: center;
    cursor: pointer;
}

.big-button {
    font-size: 16px;
    padding: 16px 32px;
    margin-bottom: 16px;
}

#cgear-skin, #dex-skin {
    margin-bottom: 0px;
}

#dreamer-sprite {
    width: 96px;
    text-align: center;
    padding-left: 0px;
}

#skin-preview-content {
    width: auto;
}

#skin-preview-image {
    box-shadow: 0px 0px 10px 3px #0A0A0A;
    margin-top: 4px;
    margin-bottom: 12px;
}
